import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EShowArea
    
    export  class EShowArea
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeShort(this.__value);
            return;
        }

        public static convert(arg1: int): EShowArea
        {
            return new EShowArea(arg1);
        }

        public static __read(arg1: SerializeStream): EShowArea
        {
            var loc1=arg1.readShort();
            if (loc1 < 0 || loc1 >= 2049) 
            {
                throw new MarshalException();
            }
            return EShowArea.convert(loc1);
        }

        public static /* const */_EShowAreaChat: int=1;

        public static /* const */_EShowAreaMiddle: int=2;

        public static /* const */_EShowAreaMiddleTop: int=4;

        public static /* const */_EShowAreaHistory: int=8;

        public static /* const */_EShowAreaTrumpet: int=16;

        public static /* const */_EShowAreaExplorer: int=32;

        public static /* const */_EShowAreaRightDown: int=64;

        public static /* const */_EShowAreaMiddleDown: int=128;

        public static /* const */_EShowAreaActiveExplorer: int=256;

        public static /* const */_EShowAreaMiddleDownEx: int=512;

        public static /* const */_EShowAreaDramaLottery: int=1024;

        public static /* const */_EShowArenaFightInfo: int=2048;

        public /* var */__value: int;
    }
